/**
  ******************************************************************************
  * @author     Chris
  * @since      2024/7/12 22:33
  *
  * @file       hd_storage.h
  * @brief      Header file of Xxx hardware driver.
  *
  * @note       This file contains the Xxx object declaration.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date          Author       Notes
  *   2024/7/12     Chris        the first version
  *
  ******************************************************************************
  */


#ifndef JLC_SKY_STORAGE_H
#define JLC_SKY_STORAGE_H

#include "stm32f4xx.h"
#include "drivers.h"

typedef struct StorageDef Storage;

struct StorageDef {
    void (*read)(Storage *this, uint8_t *buffer, uint32_t address, uint32_t count);
};

extern const struct StorageClass {
    Storage *(*build)();
} StorageBuilder;

#endif //JLC_SKY_STORAGE_H
